package com.ruiben.mall.mapper;

import com.ruiben.mall.pojo.ShopProduct;
import com.ruiben.mall.utils.MyMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface ShopProductMapper extends MyMapper<ShopProduct> {

    ShopProduct selectProductDetailById(String id);


    List<ShopProduct> getProductList();

    List<ShopProduct> getRecommendList();

    List<ShopProduct> getNewList();

    List<ShopProduct> getHotList();

    List<ShopProduct> getProductListByAllCateId(List<String> ids);

    List<ShopProduct> getProductListByCate(@Param("cateId") String cateId, @Param("sort") int sort);

}